home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 6 / MacMania 6.toast / / Tools&Utilities / TouchMe 1.2□ / touchMe 1.2 Folder / touchMe source codes / CW11 PP source / source / Common Lib / UDragDropSuit.h < prev    next >
Encoding:
Text File  |  1997-04-25  |  976 b   |  49 lines  |  [TEXT/CWIE]

  1. // ==================================================
  2. //    UDragDropSuit.h
  3. //    Copyright (C) 1996-1997 Mizutori Tetsuya
  4. //    November 22, 1996; February 6, 1997.
  5. // ==================================================
  6. //    All documents are pretty-printed in 10-point Geneva font.
  7.  
  8. #pragma once
  9.  
  10. #include <Drag.h>
  11.  
  12.  
  13. class UDragDropSuit {
  14.  
  15. public:
  16.  
  17.     static Boolean        DragText(
  18.                         const EventRecord &    theEvent,
  19.                         RgnHandle            inHiliteRgn,
  20.                         unsigned char *        textP,
  21.                         long &            textLen,
  22.                         Boolean &            wasDroppedInTrash );
  23.  
  24.     static Boolean        InDragRegion(
  25.                         DragReference    inDragRef );
  26.  
  27.     static void            ZoomBackBounds(
  28.                         DragReference    inDragRef,
  29.                         ItemReference    inItemRef );
  30.  
  31. private:
  32.  
  33.     static Boolean        MyTrackDrag(
  34.                         DragReference        inDrag,
  35.                         const EventRecord &    inMacEvent,
  36.                         RgnHandle            inDragRegion );
  37.  
  38.     static Boolean        DropLocationIsFinderTrash(
  39.                         AEDesc &        dropLocation );
  40.  
  41.  
  42. public:
  43.  
  44.     static    RgnHandle        sDragRegion;
  45. };
  46.  
  47.  
  48. // end of definitions
  49.